<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Windows (vers 25 March 2009), see www.w3.org" />
<link rel="shortcut icon" href="favicon.ico" />
<title>Ambi - an RPN programming language</title>
<meta name="keywords" content="ambi, rpn, reverse polish notation, polish notation, pn, calculator, programming language," />
<meta name="copyright" content="David Pratten 2009-2011 GPL 3" />
<meta name="author" content="David Pratten" />
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /><!-- Mobile Safari -->

<script src="ambi.js" type="text/javascript">
</script>
<script src="jquery-1.7.min.js" type="text/javascript">
</script>
<script src="jstorage.js" type="text/javascript">
</script>
<script src="ambi-index.js" type="text/javascript">
</script>
<link rel="stylesheet" type="text/css" href="ambi.css" />
</head>
<body>
<table id="overview">
<tr><td colspan="2"><h3><img src="icon32.png" style="height:32px; width:32px"/> Ambi - an RPN calculator and programming language</h3></td></tr>
<tr>

<td id="iocolumn">

<p><small><em><a id="clear" href="" title="Clear calculation, preserve variables and functions."><img style="height:16px; width:16px" src="cancel.png" /></a> Type your functions and/or expression here.  Examples: <a class="eg" href="">#1</a>
 <a class="eg" href="">#2</a> 
 <a class="eg" href="">#3</a>
 <a class="eg" href="">#4</a>
 <a class="eg" href="">#5</a>
 <a class="eg" href="">#6</a>
 <a class="eg" href="">#7</a>
 <a class="eg" href="">#8</a>
 <a class="eg" href="">#9</a>
 </em></small></p>
<textarea id="source" name="source" rows="5">
</textarea>
<p><small><em><a id="hidekbd" href="" name="hidekbd" title="Hide Virtual Keyboard"><img  style="height:16px; width:16px"  src="keyboard_remove.png" /></a>
</em></small></p><div id="virtualkbd">
<table><tr>
<td width="20%">Keypad<br />
<a class="ambikbd" title="Keypad: 7">7</a>&nbsp;<a class="ambikbd" title="Keypad: 8">8</a>&nbsp;<a class="ambikbd" title="Keypad: 9">9</a><br />
<a class="ambikbd" title="Keypad: 4">4</a> <a class="ambikbd" title="Keypad: 5">5</a> <a class="ambikbd" title="Keypad: 6">6</a><br />
<a class="ambikbd" title="Keypad: 1">1</a> <a class="ambikbd" title="Keypad: 2">2</a> <a class="ambikbd" title="Keypad: 3">3</a><br />
<a class="ambikbd" title="Keypad: 0">0</a> <a class="ambikbd" title="Keypad">.</a> <a class="ambikbd" title="Keypad">Space</a></td>
<td width="40%">Functions<br />
<a class="ambikbd" title="Mathematical functions: minus">-</a> <a class="ambikbd" title="Mathematical functions: mod">%</a> <a class="ambikbd" title="Mathematical functions: times">*</a> <a class="ambikbd" title="Mathematical functions: tdide">/</a> <a class="ambikbd" title="Mathematical functions: Unary minus">_</a> <a class="ambikbd" title="Mathematical functions: plus">+</a> <a class="ambikbd" title="Mathematical functions: absolute value">abs</a> <a class="ambikbd" title="Mathematical functions: ceiling">ceiling</a> <a class="ambikbd" title="Mathematical functions: floor">floor</a> <a class="ambikbd" title="Mathematical functions: 1/x">inv</a> <a class="ambikbd" title="Mathematical functions: Natural logarithm">ln</a> <a class="ambikbd" title="Mathematical functions: Raise to the power e">exp</a> <a class="ambikbd" title="Mathematical functions: maximum of top two items">max</a> <a class="ambikbd" title="Mathematical functions: minimum of top two items">min</a> <a class="ambikbd" title="Mathematical functions: raise to power of 2">sq</a> <a class="ambikbd" title="Mathematical functions: raise to arbitary power">pow</a> <a class="ambikbd" title="Mathematical functions: square root">sqrt</a></td>
<td width="20%">Trigonometry<br />
<a class="ambikbd" title="Trigonometry functions: sin">sin</a><a class="ambikbd" title="Trigonometry functions: asin">asin</a><br />
<a class="ambikbd" title="Trigonometry functions: cos">cos</a><a class="ambikbd" title="Trigonometry functions: acos">acos</a><br />
<a class="ambikbd" title="Trigonometry functions: tan">tan</a><a class="ambikbd" title="Trigonometry functions: atan">atan</a><br /></td>
<td width="20%">Aggregate<br />
<a class="ambikbd" title="Aggregate functions: multiply all">product</a> <a class="ambikbd" title="Aggregate functions: sum all ">sum</a> <a class="ambikbd" title="Aggregate functions: sum the square of all">sumsq</a></td></t><tr>
<td>Constants<br />
<a class="ambikbd" title="Constants: Appoximation of pi">pi</a> <a class="ambikbd" title="Constants: Approximation of e">e</a> <a class="ambikbd" title="Constants: 1">true</a> <a class="ambikbd" title="Constants: 0">false</a></td>
<td>Boolean<br />
<a class="ambikbd" title="Boolean Functions: not">not</a> <a class="ambikbd" title="Boolean Functions: not">!</a> <a class="ambikbd" title="Boolean Functions: and">and</a> <a class="ambikbd" title="Boolean Functions: and">&#38&#38</a> <a class="ambikbd" title="Boolean Functions: or">or</a> <a class="ambikbd" title="Boolean Functions: or">||</a><br />
<a class="ambikbd" title="Boolean Functions: equal to">eq</a> <a class="ambikbd" title="Boolean Functions: equal to">==</a> <a class="ambikbd" title="Boolean Functions: not equal to">neq</a> <a class="ambikbd" title="Boolean Functions: not equal to">!=</a> <a class="ambikbd" title="Boolean Functions: not equal to">&lt;&gt;</a> <a class="ambikbd" title="Boolean Functions: less than">lt</a> <a class="ambikbd" title="Boolean Functions: less than">&lt;</a> <a class="ambikbd" title="Boolean Functions: less than or equal to">lte</a> <a class="ambikbd" title="Boolean Functions: less than or equal to">&lt;=</a> <a class="ambikbd" title="Boolean Functions: greater than">gt</a> <a class="ambikbd" title="Boolean Functions: greater than">&gt;</a> <a class="ambikbd" title="Boolean Functions: greater than or equal to">gte</a> <a class="ambikbd" title="Boolean Functions: greater than or equal to">&gt;=</a></td>
<td>Print<br />
<a class="ambikbd" title="Display: print top ">printtop</a> <a class="ambikbd" title="Display: print top ">.</a>  <a class="ambikbd" title="Display: print all">printall</a> <a class="ambikbd" title="Display: print all">..</a><br />
</td><td>
Assignment<br />
<a class="ambikbd" title="Assignment: assign">=</a> <a class="ambikbd" title="Assignment: add 1 to variable">++</a> <a class="ambikbd" title="Assignment: subtract 1 from variable">--</a> <a class="ambikbd" title="Assignment: add and assign">+=</a> <a class="ambikbd" title="Assignment: subtract and assign">-=</a> <a class="ambikbd" title="Assignment: multiply and assign">*=</a> <a class="ambikbd" title="Assignment: tdide and assign">/=</a></td></tr><tr>
<td>Working Results<br />
<a class="ambikbd" title="Stack Manipulation: duplicate top item">dup</a> <a class="ambikbd" title="Stack Manipulation: swap top and next to top items">swap</a> <a class="ambikbd" title="Stack Manipulation: drop top item">drop</a><br />
<a class="ambikbd" title="Stack Manipulation: Export top local value to calling context">export</a> <a class="ambikbd" title="Stack Manipulation: Import top value from calling context">import</a></td>
<td colspan="3" id="progstruct">Program Structures<br /><small>
<a class="ambikbd" title="Program Structures: Bind NAME to the BODY expression">function ; NAME ; BODY ;</a> 
<a class="ambikbd" title="Comment">//</a> 
<a class="ambikbd" title="Constants: 1">pass</a><br />
<a class="ambikbd" title="Program Structures: Do While">dowhile ; INIT ; REPEAT ; TEST ; FINAL ;</a> 
<a class="ambikbd" title="Program Structures: For">for ; INIT ; TEST ; INCR ; REPEAT ; FINAL ;</a><br />
<a class="ambikbd" title="Program Structures: If">if ; INIT AND TEST ; IFTRUE ; FINAL ;</a> 
<a class="ambikbd" title="Program Structures: If Else">ifelse ; INIT AND TEST ; IFTRUE ; IFFALSE ; FINAL ;</a><br />
<a class="ambikbd" title="Program Structures: While Do">whiledo ; INIT ; TEST ; REPEAT ; FINAL ;</a></small></td></tr>
</table></div>
<p><small><a id="showkbd" href="" name="showkbd" title="Show Virtual Keyboard"><img style="height:32px; width:32px" src="keyboard_add.png" /></a> <em>My Ambi Functions</em></small></p>
<textarea id="functions" name="functions" rows="10">
</textarea>
<p><small><em>Version 0.6 2011-11-16 License: GPL3 (C) 2009-2011 David R. Pratten</em>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://code.google.com/p/ambi/">About</a></small></p>

</td><td id="workingresults">
<p><small><em>Results</em></small>&nbsp;&nbsp;<a id="clearvars" href="" name="clearvars" title="Clear variables, preserve calculation and functions."><img src="clearvars.png" /></a></p>
<textarea id="stack" rows="30">
</textarea>
</td>
</tr>
</table>
</body>
</html>
